/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.orders.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.orders.entity.Orders;
import com.jeeplus.modules.trade.entity.Trade;

import java.util.List;

/**
 * 交易订单MAPPER接口
 * @author freedom
 * @version 2020-09-26
 */
@MyBatisMapper
public interface OrdersMapper extends BaseMapper<Orders> {

	Orders getOrdersByOrdersNo(String ordersNo);

	/**
	 * 出售中订单
	 * @param orders
	 * @return
	 */
	List<Orders> findNotFinishList(Orders orders);

	List<Orders> findTeamList(Orders orders);
	List<Orders> findTodayList(Orders orders);

	/**
	 * 待付款  待确认
	 * @param orders
	 * @return
	 */
	List<Orders> findTradingList(Orders orders);

	/**
	 * 交易成功
	 * @param orders
	 * @return
	 */
	List<Orders> findSuccessList(Orders orders);

	Integer selectOrdersAmount(Orders selectOrder);
}